Skip to content

feat: build .NET Standard 2.0 version#131

Merged
adamsitnik merged 2 commits intoa2aproject:mainfrom
adamsitnik:ns20Build
Aug 1, 2025
Merged

feat: build .NET Standard 2.0 version#131
adamsitnik merged 2 commits intoa2aproject:mainfrom
adamsitnik:ns20Build

Conversation

@adamsitnik
Copy link
Copy Markdown
Collaborator

@adamsitnik adamsitnik commented Aug 1, 2025

The first commit shows the issue:

{503C1EF1-8CCE-4FE2-AEDA-48DC7D3AB99F}

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@adamsitnik adamsitnik enabled auto-merge August 1, 2025 11:02
SergeyMenshykh
SergeyMenshykh approved these changes Aug 1, 2025
@adamsitnik adamsitnik added this pull request to the merge queue Aug 1, 2025
Merged via the queue into a2aproject:main with commit 7c25208 Aug 1, 2025
4 checks passed
@adamsitnik adamsitnik deleted the ns20Build branch August 1, 2025 11:29
brandonh-msft added a commit that referenced this pull request Aug 25, 2025
brandonh-msft added a commit that referenced this pull request Aug 25, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 26, 2025
)

* fix: Use custom `JsonConverter` for `A2AEvent` and `A2AResponse` instead of `[JsonPolymorphic]` to fix discriminator deserialization issues

* Alternate implementation for kind serialization

Fixes #131

* Update tests/A2A.UnitTests/Models/A2AResponseTests.cs

per copilot naming suggestion

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* doesn't make sense to allow construction of these types externally

because they would require an additional discriminator specification

* allowing for type discriminator anywhere in JSON payload

by utilizing package-provided STJ v9 and setting the property accordingly

* Adding some MessageSendParams tests

* Fix for polymorphic serialization to occur

An internal property that is serialized/deserialized, but as the base
type to trigger the correct polymorphic serialization behavior,
specifically the addition of the discriminator value.
We Obsolete and hide this, however, so that it's not inadvertently
used by developers since it's intended ONLY for serialization purposes

* Update src/A2A/Models/MessageSendParams.cs

spellcheck

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Don't actually need the `Kind` property since it's implicit in the object type

* reducing PR impact

consts were nice, but not required to fix the issue

* Added UT for #160

Related Work Items: #160

* Adding UT to ensure bad message params fail deserialization

* JsonValue -> MessageJsonValue

* reorganizing UTs

* more targeted inclusion of STJ 9

---------

Co-authored-by: Radek Bartoň <radek.barton@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants